Skip to content

feat(ts-sdk): add curated provider client - #2964

Draft
dhirajsb wants to merge 1 commit into
NVIDIA:mainfrom
dhirajsb:codex/typescript-provider-client
Draft

feat(ts-sdk): add curated provider client#2964
dhirajsb wants to merge 1 commit into
NVIDIA:mainfrom
dhirajsb:codex/typescript-provider-client

Conversation

@dhirajsb

@dhirajsb dhirajsb commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Adds a first-class TypeScript ProviderClient for provider CRUD, idempotent ensure, and manual credential updates. It uses the existing authenticated Connect transport and leaves provider profiles and automatic refresh operations on the typed client.raw surface as focused follow-ups.

Related Issue

Closes #2963

Changes

  • add client.providers plus standalone ProviderClient.connect()
  • add curated ProviderDefinition, redacted ProviderRecord, and provider list options
  • add create/get/list/update/delete/ensure with SDK-consistent validation and error mapping
  • preserve protobuf 64-bit versions/timestamps as strings and support optimistic concurrency on updates
  • document a per-sandbox provider credential-rotation workflow that does not expose credential plaintext to sandbox application code
  • add in-memory transport tests covering request mapping, redaction, validation, errors, update, and ensure

The initial slice deliberately excludes provider profile management and automatic refresh (configure, status, delete, rotate) to keep this PR reviewable. Those RPCs remain fully typed through client.raw and can become nested curated clients in follow-up PRs.

Testing

  • npm run lint
  • npm run typecheck
  • npm test — 99 tests passed; coverage remains above configured thresholds
  • npm run build
  • Unit tests added/updated
  • E2E tests added/updated (not applicable; request/response behavior is covered with the in-memory Connect transport)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (not applicable; SDK README updated)

This is opened as a draft while the RFE is triaged. The implementation is offered for maintainer review and can be adjusted to the preferred public API before it is marked ready.

@copy-pr-bot

copy-pr-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown

All contributors have signed the DCO ✍️ ✅
Posted by the DCO Assistant Lite bot.

Signed-off-by: Dhiraj Bokde <dbokde@nvidia.com>
@dhirajsb
dhirajsb force-pushed the codex/typescript-provider-client branch from d21986b to 93b1506 Compare August 26, 2026 17:20
@dhirajsb

Copy link
Copy Markdown
Author

I have read the DCO document and I hereby sign the DCO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript SDK: add a first-class ProviderClient

1 participant